package com.easyj.admin.db.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *   @title 数据字典
 *   @remark 手工维护
 *   @table b_dirtionary
 *   @primaryKey id
 *   @enablePage false
 *   @uniqueIndex selectUniqueByCodeuqie(code)
 */
public class Dirtionary implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *   @title 
     *   @remark 
     *   @column id
     *   @dataType BIGINT UNSIGNED
     *   @length 20
     *   @scale 0
     *   @nullable false
     *   @jdbcType BIGINT
     */
    private Long id;

    /**
     *   @title 
     *   @remark 
     *   @column code
     *   @dataType VARCHAR
     *   @length 30
     *   @scale 0
     *   @nullable false
     *   @jdbcType VARCHAR
     */
    private String code;

    /**
     *   @title 
     *   @remark 
     *   @column name
     *   @dataType VARCHAR
     *   @length 45
     *   @scale 0
     *   @nullable false
     *   @jdbcType VARCHAR
     */
    private String name;

    /**
     *   @title 
     *   @remark 
     *   @column operator_id
     *   @dataType BIGINT UNSIGNED
     *   @length 20
     *   @scale 0
     *   @nullable true
     *   @jdbcType BIGINT
     */
    private Long operatorId;

    /**
     *   @title 
     *   @remark 
     *   @column modify_time
     *   @dataType DATETIME
     *   @length 19
     *   @scale 0
     *   @nullable true
     *   @jdbcType TIMESTAMP
     */
    private Date modifyTime;

    /**
     *   @title 
     *   @remark 
     *   @column create_time
     *   @dataType DATETIME
     *   @length 19
     *   @scale 0
     *   @nullable true
     *   @jdbcType TIMESTAMP
     */
    private Date createTime;
    
    private List<DirtionaryItem> items;
    
    

    public List<DirtionaryItem> getItems() {
		return items;
	}

	public void setItems(List<DirtionaryItem> items) {
		this.items = items;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Dirtionary other = (Dirtionary) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", operatorId=").append(operatorId);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}